<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="entity.tUser"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	tUser tuser = (tUser) session.getAttribute("user");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>设备-水处理系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="js/check.js">
</script>

	</head>
	<body>

		<s:if test="result != null">
			<script type="text/javascript">
				alert('${result}');
				window.window.location.href = 'getAlltUserAction';
			</script>
		</s:if>

		<div class="main">
			<jsp:include page="conter/header.jsp"></jsp:include>
			<div class="certen">
				<jsp:include page="conter/userLeft.jsp"></jsp:include>

				<div class="content">
					<div class="mainbar">
						<div class="runbutton">
							<h2>
								<span style="letter-spacing: 15px; margin-left: 37px;">人员列表</span>
							</h2>
							<div class="clr"></div>
						</div>
						<div style="height: auto;">
							<table width="100%" height="100%" border="0" cellspacing="0"
								cellpadding="0"
								style="margin-bottom: 10px; word-break: break-all; word-wrap: break-all;">
								<tr>
									<td align="center">
										<img src="images/rewu.jpg" />
									</td>
								</tr>
								<tr>
									<td>
										<table align="center" border="0" cellpadding="0"
											cellspacing="1" bgcolor="b5d6e6">
											<tr class="sb_list_top">
												<td width="10%">
													用户名
												</td>
												<td width="10%">
													姓名
												</td>

												<td width="17%">
													邮箱
												</td>
												<td width="15%">
													手机
												</td>
												<td width="12%">
													电话
												</td>
												<td width="10%">
													基本操作
												</td>
											</tr>

											<s:iterator id="lists" value="#request.lists">
												<tr class="sb_list">
													<td>
														<s:a href="gettUserDetail?userId=%{#lists.userId}">${userName}</s:a>
													</td>
													<td>
														<s:a href="gettUserDetail?userId=%{#lists.userId}">${trueName }</s:a>
													</td>

													<td>
														${email}
													</td>
													<td>
														${mobilePhone }
													</td>
													<td>
														${phone }
													</td>
													<td>
														<img src="images/11.gif" height="16" width="16" />
														<s:a href="deletetUserAction?userId=%{#lists.userId}"
															onclick="return confirm('确定将此记录删除?')">删除</s:a>
														<br />
														<img src="images/33.gif" height="16" width="16" />
														<s:a href="gettUserDateToAlter?userId=%{#lists.userId}">修改</s:a>
														<br />
														<img src="images/22.gif" height="16" width="16" />
														<s:a href="gettUserDetail?userId=%{#lists.userId}">详细信息</s:a>

													</td>
												</tr>
											</s:iterator>

										</table>
									</td>
								</tr>
							</table>

							<div class="clr"></div>
						</div>
						<div class="pagenavi">
							<span class="pages">Page &nbsp;&nbsp;<s:property
									value="pageBean.currentPage" /> &nbsp;&nbsp;of &nbsp;&nbsp;<s:property
									value="pageBean.totalPage" /> </span>

							<s:if test="%{pageBean.currentPage == 1}">
								<span class="current"> 首页 </span> 上一页
        </s:if>
							<s:else>
								<span class="current"> <a href="getAlltUserAction?page=1">首页</a>
								</span>
								<a
									href="getAlltUserAction?page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
							</s:else>
							<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
								<a
									href="getAlltUserAction?page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
								<a
									href="getAlltUserAction?page=<s:property value="pageBean.totalPage"/>">尾页</a>
							</s:if>
							<s:else>
            下一页 尾页
        </s:else>
						</div>
					</div>
				</div>


				<div class="clr"></div>
			</div>
		</div>

		<script src="js/jquery-1.8.2.min.js" type="text/javascript">
</script>
		<script src="js/jquery.carouFredSel-6.0.4-packed.js"
			type="text/javascript">
</script>

		<div class="fbg">
			<div class="fbg_resize">
				<jsp:include page="conter/slide.jsp"></jsp:include>
			</div>
		</div>
		<jsp:include page="conter/footer.jsp"></jsp:include>
		</div>
	</body>
</html>